<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <title>就行天下</title>

    <link rel="stylesheet" href="__STATIC__/layui_layim/dist/css/layui.mobile.css">
<style>
    .layui-m-layer1 .layui-m-layercont .log {
        margin: 24px auto;
    }

    .layui-m-layer1 .layui-m-layercont .log .layim-chat-text {
        left: 60px;
        max-width: 60%;
    }

    .show-layui-layim-photos {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 100000000;
        background: rgba(0, 0, 0, .9);
    }
    .show-layui-layim-photos img {
        width: 100%;
        position: absolute;
        top: 50%;
    }
    .diy_layer {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 100000000;
        display: none;
    }
</style>
</head>
<body>

<script>
    // 融云配置信息
    var params = {
        appKey : '{$Think.config.rong.app_key}',
        token : '{$data.token}',
        navi : ''
    };
    // 定义layim基础对象
    var SCOPE = {};
    // layim当前用户信息
    SCOPE.mine_info = {
        "username": "{$data.name}" //我的昵称
        ,"id": '{$data.member_id}' //我的ID
        ,"avatar": "{$data.portraitUri}" //我的头像
        ,"sign": "{$data.sign}"
    };

    // layim对方信息
    SCOPE.target_info = {
        "username": "{$data.target.name}" //昵称
        ,"id": '{$data.target.member_id}' //ID
        ,"avatar": "{$data.target.portraitUri}" //头像
        ,"sign": "{$data.target.sign}" // 签名
        ,"type" : '{$data.type}' // 聊天类型
    };

    SCOPE.sendMsgUrl = '{:url("save_rong_msg")}';

    // 获取群员url
    SCOPE.members_url = '{:url("get_group_members")}';

    // 获取聊天记录
    SCOPE.get_msg_url = '{:url("get_msg_list")}';

    // 上传图片接口
    SCOPE.upload_image_url = '{:url("upload_image")}';

</script>
<script src="__STATIC__/home/jquery_weui/js/jquery-2.1.4.js"></script>
<script src="__STATIC__/rong/dist/assets/js/RongIMLib.js"></script>
<script src="http://cdn.ronghub.com/RongEmoji-2.2.5.min.js"></script>
<script src="__STATIC__/layui_layim/dist/layui.js"></script>
<script src="__STATIC__/home/js/function.js"></script>
<script src="__STATIC__/home/js/rong_create_chat.js"></script>
<div class="diy_layer">
    <div class="layui-m-layer layui-m-layer2" index="0"><div class="layui-m-layershade"></div><div class="layui-m-layermain"><div class="layui-m-layersection"><div class="layui-m-layerchild  layui-m-anim-scale"><div class="layui-m-layercont"><i></i><i class="layui-m-layerload"></i><i></i><p></p></div></div></div></div></div>
</div>
</body>
</html>
